import load
import random

def randScore():
    for i in range(24,43):
        result=''
        for _ in range(9):
            score=random.randint(0,100)
            result+=str(score)+','
        print(result)

def caluGPA(s):
    if s>100:
        return 10
    elif s>95 and s<=100:
        return 4.3
    elif s>90 and s<=95:
        return 4
    elif s>85 and s<=89:
        return 3.7
    elif s>82 and s<=84:
        return 3.3
    elif s>78 and s<=81:
        return 3
    elif s>75 and s<=77:
        return 2.7
    elif s>72 and s<=74:
        return 2.3
    elif s>68 and s<=71:
        return 2
    elif s>65 and s<=67:
        return 1.7
    elif s==64:
        return 1.5
    elif s>61 and s<=63:
        return 1.3
    elif s==60:
        return 1
    else:
        return 0

for i in range(1,load.l):
    gpa=0
    for j in range(load.shuxue,load.yuwen+1):
        s=load.getCell(i,j)
        gpa+=caluGPA(s)
    gpa=gpa/9
    print(gpa)
